<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="static/css/admin/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="static/js/common.js"></script>
</head>
<body>
<div class="colorarea01">
<div class="search clearfix">
	<div class="searchL">
		<ul class="menulist">
			<li><a href="<{$adminpage}>?m=area&a=add" class="add">添加省份</a></li>
		</ul>	
	</div>
</div>
<form action="index.php" method="post" name="form">
<table cellspacing="0" cellpadding="0" width="100%"  class="listtable">
<tr><th>选择</th><th>排序</th><th align="left">名称</th><th>操作</th></tr>
<{foreach from=$arealist item=arealist}>
<tr>
<td align="center" width="30"><input type="checkbox" name="bulkid[]" value="<{$arealist.id}>"></td>
<td align="center" width="50"><input type="text" size="5" name="orderid[<{$arealist.id}>]" value="<{$arealist.orderid}>" class="ip01"/></td>
<td align="left"  class="fb"><{$arealist.name}></td>
<td align="right" width="130" class="rightmenu"><a href="<{$adminpage}>?m=area&a=add&parentid=<{$arealist.id}>">添加城市</a> <a href="<{$adminpage}>?m=area&a=edit&id=<{$arealist.id}>">编辑</a> <a href="javascript:if(confirm('确实要删除吗?'))location='<{$adminpage}>?m=area&a=del&id=<{$arealist.id}>'">删除</a>
</td>
</tr>
<{foreach from=$arealist.city item=citylist}>
	<tr>
	<td align="center" width="30"><input type="checkbox" name="bulkid[]" value="<{$citylist.id}>"></td>
	<td align="center" width="50"><input type="text" size="5" name="orderid[<{$citylist.id}>]" value="<{$citylist.orderid}>" class="ip01"/></td>
	<td align="left">—— <{$citylist.name}> <{if $citylist.isrecom==1}><span class="red">[推荐]</span><{/if}></td>
	<td align="right" width="80" class="rightmenu"><a href="<{$adminpage}>?m=area&a=recom&id=<{$citylist.id}>&isrecom=<{if $citylist.isrecom==1}>0<{else}>1<{/if}>"><{if $citylist.isrecom==1}>取消推荐<{else}>推荐<{/if}></a> <a href="<{$adminpage}>?m=area&a=edit&id=<{$citylist.id}>">编辑</a> <a href="javascript:if(confirm('确实要删除吗?'))location='<{$adminpage}>?m=area&a=del&id=<{$citylist.id}>'">删除</a>
	</td>
	</tr>
<{/foreach}>
<{/foreach}>
<tr>
	<td align="center">
	<input type="checkbox" onclick="javascript:selectAll();">
	</td>
	<td colspan="7" class="buttontd">
	<a href="javascript:submitForm('<{$adminpage}>?m=area&a=bulkdel','删除');" title="请选择后操作">删除</a> <a href="javascript:submitForm('<{$adminpage}>?m=area&a=bulksort','更新排序');" title="请选择后操作">更新排序</a>
	</td>
</tr>
</table>
</form>
<div class="listpage"><{$button_basic}><{$button_select}></div>
</div>
</body>
</html>